#CMakeLists.txt
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT(OpenGLlearn)
SET(WIN_DEPENDENCE_PATH ./3rdDependence/windows)

SET(UNIX_DEPENDENCE_PATH ./3rdDependence/unix)

ADD_SUBDIRECTORY(src)

IF(WIN32)
SET(CMAKE_INSTALL_PATH ${PROJECT_BINARY_DIR}/bin/Debug)

INSTALL(FILES 3rdDependence/windows/freeglut-2.8.1/lib/x64/Debug/freeglut.dll DESTINATION ${CMAKE_INSTALL_PATH})
INSTALL(FILES 3rdDependence/windows/glew-1.12.0/bin/Debug/x64/glew32d.dll DESTINATION ${CMAKE_INSTALL_PATH})
ENDIF(WIN32)